<table id="" class="table table-bordered">
  <thead>
    <tr>
      <th>标题</th>
      <th>图片</th>
      <th>类别</th>
      <th>链接</th>
      <th>排序</th>
      <th>添加时间</th>
      <th>修改时间</th>
      <th>操作</th>
    </tr>
  </thead>
  <tbody>
    <% data.list.forEach(item=>{ %>
      <tr>
        <td>
          <%= item.advTitle %>
        </td>
        <td><img height="80" src="/server/<%= item.advPic %>" alt="">
        </td>
        <td>
          <%= data.typeMap[item.advType] %>
        </td>
        <td>
          <%= item.advHref %>
        </td>
        <td>
          <%= item.orderNum %>
        </td>
        <td>
          <%= item.addTime %>
        </td>
        <td>
          <%= item.upTime %>
        </td>
        <td>
          <button type="button" class="btn btn-danger btn-sm">删除</button>
          <button type="button" data-id="<%= item._id %>" class="btn btn-success btn-sm btn-edit">修改</button>
        </td>
      </tr>
      <% }) %>

        <!-- <tr>
      <td>小米13广告</td>
      <td><img height="80" src="/img/小米13广告.jpg" alt="">
      </td>
      <td>轮播图</td>
      <td>http://learn.fuming.site</td>
      <td>1</td>
      <td>2023-06-17 10:51:57</td>
      <td>2023-06-17 10:51:57</td>
      <td>
        <button type="button" class="btn btn-danger btn-sm">删除</button>
        <button type="button" data-id="648d1fcd73eabdb6ee308067" class="btn btn-success btn-sm btn-edit">修改</button>
      </td>
    </tr> -->
  </tbody>
</table>